package cn.edu.buu.news.exception;

public enum ExceptionInfoEnum {
    GLOBALERROR("出错了",500),
    HEADPICALLOWEXTENDS("头像只允许.png,.jpg,.gif",500),
    FILESIZENOTALLOW("您上传的文件超出40KB，请重新选择",500),
    LOGINFAIL("用户账号密码错误",401 ),
    NOTLOGIN("未登录，请登录",401);
    private String errorMessage;
    private Integer code;
    ExceptionInfoEnum(String errorMessage,Integer code){
        this.errorMessage =errorMessage;
        this.code=code;
    }
    public String getErrorMessage(){
        return this.errorMessage;
    }
    public Integer getCode() {
        return code;
    }
}